package tt.dz.egobus.servicemanager.util;

import java.math.BigDecimal;

/**
 * @author Anson
 * @date 17-3-15
 * @name 数字转换工具
 * @since 1.0.1
 */
public final class NumberUtils {

    public static int parseInt(long l){
        return BigDecimal.valueOf(l).intValue();
    }

    public static long parseLong(String s) {
        return Long.parseLong(s.trim());
    }

    public static BigDecimal getBigDecimal(String s) {
        return BigDecimal.valueOf(Long.parseLong(s.trim()));
    }

}